﻿Imports System.Security.Cryptography
Imports System.Text

Public Class CriptoMD5Util
    Private Shared MD5 As New MD5CryptoServiceProvider

    Public Shared Function MD5Hash(ByVal value As String) As Byte()
        Return MD5.ComputeHash(ASCIIEncoding.ASCII.GetBytes(value))
    End Function
    Public Shared Function MD5HashUTF8(ByVal value As String) As Byte()
        Return MD5.ComputeHash(Encoding.UTF8.GetBytes(value))
    End Function
End Class
